package com.mathdroid.model.abilities.specs.sniper;

import com.mathdroid.model.abilities.Ability;
import com.mathdroid.model.enums.EDmgType;

public final class Shiv extends Ability {

	/**
	 * Generated UID.
	 */
	private static final long serialVersionUID = -2004128209728310666L;

	public Shiv() {
		this.setName("Shiv");
		this.setIconName("shiv");
		this.setResource("Energy");
		this.setCost(15d);
		this.setCooldownMs(6000d);
		this.setDirectDamageType(EDmgType.KINETIC);
		
		this.setStandardHealthPercentMax(0.188);
		this.setStandardHealthPercentMin(0.148);
		this.setCoefficient(1.68);
		
		this.setTrainableLevel(2);
	}
	
	@Override
	public String getDescription() {
		return "Stabs a target for " + this.getMinDirect() + " - " 
			+ this.getMaxDirect() + " kinetic damage";
	}

	@Override
	public double getMinPeriodic() {
		return 0d;
	}

	@Override
	public double getMaxPeriodic() {
		return 0d;
	}

	@Override
	public double getMinDirect() {
		return
			this.getCoefficient() 
			* this.getCharStats().getTotalBonusDamageTechForce()
		
			+ this.getStandardHealthPercentMin() 
			* this.getStdDmg();
	}

	@Override
	public double getMaxDirect() {
		return 
			this.getCoefficient() 
			* this.getCharStats().getTotalBonusDamageTechForce()
			
			+ this.getStandardHealthPercentMax() 
			* this.getStdDmg();
	}

}
